
#encoding=UTF-8

from Error import *
from DefensiveBuilding import *

class XBow(DefensiveBuilding):
	def __init__(self):
		DefensiveBuilding.__init__(self)
		self.url = "http://clashofclans.wikia.com/wiki/X-Bow"
		self.number_available_dsec = """
0 	0 	0 	0 	0 	0 	0 	0 	2 	3 
"""
		self.level_info_desc = """
1 	50 	6.4 	1,500 	50,000 	3,000,000 	7 days 	777 	9 	Purple 
2 	60 	7.68 	1,900 	60,000 	5,000,000 	10 days 	929 	9 	Gold
3 	75 	9.6 	2,400 	70,000 	7,000,000 	14 days 	1,099 	9 	Dark Blue
4 	80 	10.24 	2,800 	80,000 	8,000,000 	14 days 	1,099 	10 	Orange 
"""
		self._DoParse()

	def _HitPointsIndex(self):
		return 3

	def _BuildCostIndex(self):
		return 5

	def _BuildTimeIndex(self):
		return 6

	def _ExperienceGainedIndex(self):
		return 7

	def _TownHallLevelRequiredIndex(self):
		return 8

	def GetAttackSpeed(self):
		return 0.128

	def _DamagePerSecondIndex(self):
		return 1

